#--*- makefile -*--------------------------------------------------------------
#
#   Standard makefile
#
#------------------------------------------------------------------------------

# Path to project directory.
UPDIR = ..
# Path to subdirectories.
SUBDIR=
# Path to directory for binaries:
BINPATH = ../bin


#
# Libraries and paths (which are not defined globally).
#

LIBS = -lBiopool2000 -ltools

LIB_PATH = -L.

INC_PATH = -I. -I../tools/ 

#
# Objects and headers
#

SOURCES = Identity.cc SimpleBond.cc Bond.cc \
 Component.cc Monomer.cc Polymer.cc Atom.cc Group.cc SideChain.cc \
 AminoAcid.cc Spacer.cc IntSaver.cc IntLoader.cc XyzLoader.cc \
 XyzSaver.cc SeqSaver.cc PdbLoader.cc PdbSaver.cc SeqLoader.cc \
 IntCoordConverter.cc SideChainConstructor.cc RelLoader.cc RelSaver.cc \
 SeqConstructor.cc Ligand.cc LigandSet.cc SolvExpos.cc StructureNetwork.cc


OBJECTS = Identity.o SimpleBond.o Bond.o \
 Component.o Monomer.o Polymer.o Atom.o Group.o SideChain.o \
 AminoAcid.o Spacer.o IntSaver.o IntLoader.o XyzLoader.o \
 XyzSaver.o SeqSaver.o PdbLoader.o PdbSaver.o SeqLoader.o \
 IntCoordConverter.o SideChainConstructor.o RelLoader.o RelSaver.o \
 SeqConstructor.o Ligand.o LigandSet.o SolvExpos.o StructureNetwork.o

TARGETS = AtomTest GroupTest AminoAcidTest SpacerTest LigandTest \
	ReferenceTest SideChainTest BuildTest IntSpacerTest \
	PdbCorrector PdbSecondary PdbEditor Pdb2Seq pdb2secondary pdbshifter \
	pdbMover Pdb_to_Cytoscape

EXECS = SpacerTest pdb2secondary pdbshifter pdbMover Pdb_to_Cytoscape

LIBRARY = libBiopool2000.a

#
# Install rule
#

compile: all

install: $(LIBRARY) $(TARGETS)
	mv $(LIBRARY) $(UPDIR)/lib
	#cp $(EXECS) $(BINPATH)

#
# Call global Makefile to do the job.
#

include ../tools/Makefile.global
